/*
 * Copyright (c) Jiandong.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import hilog from '@ohos.hilog';
import AbilityStage from "@ohos.application.AbilityStage"

import { ReactAbilityStage, ReactNativeHost } from 'ReactHarmony'
export default class MyAbilityStage extends AbilityStage implements ReactAbilityStage{
//export default class MyAbilityStage extends AbilityStage implements ReactAbilityStage{
    static readonly TAG = 'MyAbilityStage'
    //todo support ReactNativeHost customization
//    readonly mReactNativeHost: ReactNativeHost =  (() => {
//        return new class MyReactNativeHost extends ReactNativeHost {
//            protected getJSMainModuleName(): string {
//              return "index";
//            }
//        }();
//    })()

    onCreate() {
        hilog.info(0x0000, MyAbilityStage.TAG, '%{public}s', 'onCreate');

        //TODO SoLoader
//        SoLoader.init(false);
    }
}